/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 38917
 * Date: 2025-02-13
 * Time: 18:21
 */
public class test {
    public static void main(String[] args) {
        MyPriorityQueue myPriorityQueue = new MyPriorityQueue();
        int[] str = {1,2,3,4,5,6,7,8,9,10};
        myPriorityQueue.initHeap(str);
        myPriorityQueue.createHeap1();
        myPriorityQueue.disPlay();
        myPriorityQueue.createHeap2();
        myPriorityQueue.disPlay();
        /*myPriorityQueue.offer(101);
        myPriorityQueue.offer(34);
        myPriorityQueue.offer(114);
        myPriorityQueue.offer(76);
        myPriorityQueue.offer(39);*/
        myPriorityQueue.disPlay();
        System.out.println("--------------------------------------------");
        System.out.println(myPriorityQueue.pollRoot());
        System.out.println("--------------------------------------------");
        myPriorityQueue.disPlay();
        System.out.println("--------------------------------------------");
    }
}
